Open topic with navigation
On Error
Sets the error handling behavior for a script, function, or subroutine.
- On Error Resume Next continues playback even when an error occurs. The error is displayed in the Errors pane, run report, and status tool.
- On Error Goto 0 stops playback when an error occurs, which is QA Wizard Pro's default error behavior.
- On Error Resume Next can be added to scripts before an error occurs to set the error handling scope. Each On Error statement overrides the behavior specified by previous On Error statements in the same scope.
Syntax
On Error Resume Next
or
On Error Goto 0
Example
Function FunctionThatFails()
PrintLn("Playback continued")
End Function
FunctionThatFails()
PrintLn("Script did not fail")